<?php
/*正则表达式
 * Created by PhpStorm.
 * User: wuz
 * Date: 2016/8/22
 * Time: 22:01
 */
namespace Ycf\Lession\Regex\RegexClass;
class RegexClass{
    function regexArray($regex, $array)
    {
        return preg_grep($regex, $array);
    }
        function regexUrl($regexUrl,$url){
         preg_match($regexUrl,$url,$macth);
            return $macth;
        }
    function  regexAllUrl($regexAllUrl,$urlAll){
        preg_match_all($regexAllUrl,$urlAll,$match,PREG_SET_ORDER);
        return $match;
    }
    function  regexReplace($regexReplace ,$replaceString){
        return preg_replace($regexReplace ,'',$replaceString);//以空取代html标签
    }
}










